[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
LTRIM(SEXP1,SEXP2) (STRING)
Function
Trim a specified character from the left end of a string.
Syntax
LTRIM(str,ch)
str = Any string expression.
ch = A string whose first character will be used as a mask to strip
all consecutive occurances from the left end of str starting
from the first character of str.
Return Type & Value
STRING
Returns the trimmed str.
Remarks
A common need in programming is to strip leading and/or trailing spaces
(or other characters). This function will strip a specified character
from the left end of a string and return the trimmed string.
Examples
STRING s
LET s = " TEST "
PRINTLN LTRIM(s," ") ' Will print "TEST "
PRINTLN LTRIM(".....DA"+"TA.....",".") ' Will print "DATA....."
PRINTLN LTRIM(".....DA"+"TA....."," ") ' Will print ".....DATA....."
See Also:
RTRIM()
TRIM()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson